package com.ken.apollo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ken.apollo.mapper.ProductImagesMapper;
import com.ken.apollo.domain.entity.ProductImages;
import com.ken.apollo.service.ProductImagesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 产品图片表(ProductImages)表服务实现类
 *
 * @author makejava
 * @since 2025-06-09 20:11:41
 */
@Service
public class ProductImagesServiceImpl extends ServiceImpl<ProductImagesMapper, ProductImages> implements ProductImagesService {

    /**
     * 批量保存产品图片
     *
     * @param productImagesList
     */
    @Override
    public boolean saveBatch(List<ProductImages> productImagesList) {
        return getBaseMapper().insertBatch(productImagesList) > 0;
    }
}

